# add .h文件
include_directories(
   ${PROJECT_PATH}/include
)

file( GLOB header_list 
    ${PROJECT_PATH}/include/usb_cam.h
    ${PROJECT_PATH}/include/utils.hpp
)

# # add .cpp文件
file( GLOB source_list 
    ${PROJECT_PATH}/src/usb_cam.cpp 
)

# set link dir
# link_directories(
#     ${THIRD_LIBS_PATH}/lib/64
# )

find_package(OpenCV REQUIRED)


include_directories(
  ${OpenCV_INCLUDE_DIRS}
)

#==============
# generat bin  
#==============

add_executable(test_app test.c)
target_link_libraries(test_app pthread)

add_executable(test_cam main.cpp ${source_list} ${header_list})
target_link_libraries(test_cam pthread ${OpenCV_LIBS})